package com.dianping.cat.alarm.rule.entity;

import com.dianping.cat.alarm.rule.BaseEntity;
import com.dianping.cat.alarm.rule.IVisitor;
import java.util.ArrayList;
import java.util.List;


public class Config
  extends BaseEntity<Config>
{
  private String m_starttime;
  private String m_endtime;
/* 14 */   private List<Condition> m_conditions = new ArrayList();






/* 21 */   public void accept(IVisitor visitor) { visitor.visitConfig(this); }


  public Config addCondition(Condition condition) {
/* 25 */     this.m_conditions.add(condition);
/* 26 */     return this;
  }


  public boolean equals(Object obj) {
/* 31 */     if (obj instanceof Config) {
/* 32 */       Config _o = (Config)obj;

/* 34 */       if (!equals(getStarttime(), _o.getStarttime())) {
/* 35 */         return false;
      }

/* 38 */       if (!equals(getEndtime(), _o.getEndtime())) {
/* 39 */         return false;
      }

/* 42 */       if (!equals(getConditions(), _o.getConditions())) {
/* 43 */         return false;
      }


/* 47 */       return true;
    }

/* 50 */     return false;
  }


/* 54 */   public List<Condition> getConditions() { return this.m_conditions; }



/* 58 */   public String getEndtime() { return this.m_endtime; }



/* 62 */   public String getStarttime() { return this.m_starttime; }




  public void mergeAttributes(Config other) {
/* 81 */     if (other.getStarttime() != null) {
/* 82 */       this.m_starttime = other.getStarttime();
    }

/* 85 */     if (other.getEndtime() != null) {
/* 86 */       this.m_endtime = other.getEndtime();
    }
  }

  public Config setEndtime(String endtime) {
/* 91 */     this.m_endtime = endtime;
/* 92 */     return this;
  }

  public Config setStarttime(String starttime) {
/* 96 */     this.m_starttime = starttime;
/* 97 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-alarm-3.0.0.jar!/com/dianping/cat/alarm/rule/entity/Config.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */